package com.springboot.demo.domain;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Min;


@Entity
@Table(name = "t_dictionary_infos", schema = "dbdemo")
public class Dictionary {

    @Id
    @Column(name = "DICTIONARY_ID")
    @Min(value = 0, message = "输入正确的dictionaryId")
    private long dictionaryId;

    @Column(name = "DICTIONARY_CODE")
    private String dictionaryCode;

    @Column(name = "PARENT_DICTIONARY_CODE")
    private String parentDictionaryCode;

    @Column(name = "DICTIONARY_NAME")
    private String dictionaryName;

    @Column(name = "CREATE_ID")
    private String createId;

    @Column(name = "CREATE_TIME")
    private String createTime;

    @Column(name = "MODIFIED_ID")
    private String modifiedId;

    @Column(name = "MODIFIED_TIME")
    private String modifiedTime;

    @Column(name = "IS_DELETED")
    private int isDeleted;

    @Column(name = "REMARKS")
    private String remark;

    @Column(name = "IS_ROOT")
    private int isRoot;

    public long getDictionaryId() {
        return dictionaryId;
    }

    public void setDictionaryId(long dictionaryId) {
        this.dictionaryId = dictionaryId;
    }

    public String getDictionaryCode() {
        return dictionaryCode;
    }

    public void setDictionaryCode(String dictionaryCode) {
        this.dictionaryCode = dictionaryCode;
    }

    public String getParentDictionaryCode() {
        return parentDictionaryCode;
    }

    public void setParentDictionaryCode(String parentDictionaryCode) {
        this.parentDictionaryCode = parentDictionaryCode;
    }

    public String getDictionaryName() {
        return dictionaryName;
    }

    public void setDictionaryName(String dictionaryName) {
        this.dictionaryName = dictionaryName;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getModifiedId() {
        return modifiedId;
    }

    public void setModifiedId(String modifiedId) {
        this.modifiedId = modifiedId;
    }

    public String getModifiedTime() {
        return modifiedTime;
    }

    public void setModifiedTime(String modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getIsRoot() {
        return isRoot;
    }

    public void setIsRoot(int isRoot) {
        this.isRoot = isRoot;
    }

    @Override
    public String toString() {
        return "Dictionary{" +
                "dictionaryId=" + dictionaryId +
                ", dictionaryCode='" + dictionaryCode + '\'' +
                ", parentDictionaryCode='" + parentDictionaryCode + '\'' +
                ", dictionaryName='" + dictionaryName + '\'' +
                ", createId='" + createId + '\'' +
                ", createTime='" + createTime + '\'' +
                ", modifiedId='" + modifiedId + '\'' +
                ", modifiedTime='" + modifiedTime + '\'' +
                ", isDeleted=" + isDeleted +
                ", remark='" + remark + '\'' +
                ", isRoot=" + isRoot +
                '}';
    }
}